/**
 *
 */
package org.jenkon.commons.collection.utils;

import java.util.Map;

/**
 * util class with helping methods for {@link Map} handling.<br>
 * 
 * @author Jens Konopka
 * 
 */
public final class MapUtils {

	/**
	 * hide public constructor for this util class.
	 */
	private MapUtils() {
	}

	/**
	 * check the {@link Map} of is empty. if the {@link Map} is <code>null</code> or the
	 * {@link Map#isEmpty()} then return <code>true</code> else return <code>false</code>.
	 * 
	 * @param values the {@link Map} to check of is empty
	 * @return true oder false
	 */
	public static boolean isEmpty(final Map<?, ?> values) {
		return values == null ? true : values.isEmpty();
	}

}
